package com.study.patterns.proxy.dynamic.cglib;

import com.study.patterns.proxy.dynamic.ComputeService;
import com.study.patterns.proxy.dynamic.ComputeServiceImpl;

/**
 * Created by tan on 2017/6/20.
 */
public class Client {
	public static void main(String[] args) throws Exception {
		ServiceInterceptorImpl serviceInterceptor = new ServiceInterceptorImpl();
		ComputeService computeService = new ComputeServiceImpl();
		ComputeService proxy = (ComputeService) serviceInterceptor.getProxy(computeService);
		proxy.add(1, 6);
		serviceInterceptor.generateProxyClass();
		while (true){
			Thread.sleep(1000);
		}

		//writer.vis

	}
}
